package com.demo.gulimall.product.service.impl;

import com.demo.gulimall.product.entity.SkuSaleAttrValue;
import com.demo.gulimall.product.mapper.SkuSaleAttrValueMapper;
import com.demo.gulimall.product.service.SkuSaleAttrValueService;
import com.demo.gulimall.product.vo.ItemSaleAttrVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * sku销售属性&值
 *
 * @author Chen Yuan
 */

@Service
public class SkuSaleAttrValueServiceImpl extends ServiceImpl<SkuSaleAttrValueMapper, SkuSaleAttrValue> implements SkuSaleAttrValueService {

    @Autowired
    private SkuSaleAttrValueMapper skuSaleAttrValueMapper;

    @Override
    public List<ItemSaleAttrVo> selectSaleAttrsBySpuId(Long spuId) {
        return baseMapper.selectSaleAttrsBySpuId(spuId);
    }
}
